package com.example.myhotel.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
@Data
public class Employees implements Serializable {
    private String id;

    private int admin;//1为有登录后台权限，0为没有

    @TableField(exist = false)
    private String  code;
//    @JsonProperty(value = "username")
    private String name;

    private String phone;

    private String idcard;
    @TableField(exist = false)
    private String exist;

    private String work;

    private String address;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private LocalDateTime endTime;


}
